import moment from 'moment'
const pattern = 'YYYY-MM-DD HH:mm:ss'

export const getDate = (date) => {
  date = date || new Date()
  return moment(date).format(pattern)
}
